import { defineStore } from "pinia";


const useComplexFormStore = defineStore(
  'complexForm',
  {
    state() {
      return {
        formItems: getFormItems(),
        files: getFiles(),
        formInfo: getFormInfo(),
      };
    }
  })

function getFormItems() {
  return localStorage.getItem('student-form');
}

function getFiles() {
  return localStorage.getItem('files')
}

function getFormInfo() {
  return sessionStorage.getItem('formInfo')
}

export default useComplexFormStore;